// indexviews/doctorList/doctorList.js
var app = getApp();
var servicePath = require("../../utils/servicePath.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    doctors:[],
    appDomain: app.globalData.appDomain
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var _this = this;
    wx.request({
      url: servicePath.DoctorService() + "?sectionId="+options.id,
      method:"GET",
      success:function(res){
        if(res.data.code == 200) {
          if (res.data.data){
            _this.setData({
              doctors: res.data.data
            })
          }else {

          }
        }
      }
    })
  }
})